package edu.seu.mart.dao;

import edu.seu.mart.entity.Pager;
import edu.seu.mart.model.Order;

import java.util.Date;

/**
 * Created by Administrator on 2015/3/10.
 */
public interface IOrderDao extends IBaseDao<Order> {
//    public Pager<Order> loadByUserId(int id);
//    public Pager<Order> loadBySellerId(int id);
//    public Pager<Order> findOrderById();
//    public Pager<Order> findOrder(int orderId);

    public Double getMoneyOfOneDayBySeller(Date time, int sellerId);

    public Double getMoneyOfOneMonthBySeller(int year, int month, int sellerId);

//    public Pager<Order> findBySellState(int seller,String state);

    public Pager<Order> loadByUserId(int id);
    public Pager<Order> loadBySellerId(int id);
    public Pager<Order> findOrder();
    public Pager<Order> findOrderById(int id);
    public Pager<Order> findOrderByState(String state);
    public Pager<Order> findBySellState(int seller,String state);
    public Pager<Order> findByUserState(int user,String state);
    public Pager<Order> findByState(int sellerId,String s1,String s2);
}
